package com.ydj.app.protocol.redis;

import com.ydj.framework.redis.RdsBaseLoginInfo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Getter
@Setter
@ToString
@Accessors(chain = true)
public class RdsCmsLoginInfo extends RdsBaseLoginInfo {
	// 数据库的cms_account表的id
	private Long accountId;

	private String name;

	@Override
	public String getIdForLog() {
		return String.valueOf(accountId);
	}

	@Override
	public String getNameForLog() {
		return name + "(" + accountId + ")";
	}
}